<?php
namespace app\single\api;


use think\Db;
use app\single\model\RoleModel;
use think\facade\Log;

class Check
{
    public function run($params)
    {
        $rolemodel= new RoleModel();
        try{
             $rolemodel->where("1=1")->count(); 
        } catch (\Exception $e) {
            Log::write("debug error msg".$e->getMessage());
            return "failed";
        }

        return "ok";
    }
}